package com.jinke.api.modules.app.controller.res;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.List;

/**
 * @projectName:
 * @title: PriceSurchargeImportDto
 * @description:
 * @see:
 * @author: hhp
 * @version: 1.0.0
 * @createTime: 2024/7/30 11:29
 */
@Data
public class PriceSurchargeImportDto {
    @ApiModelProperty("货运商运输服务code")
    private String serviceCode;

    @ApiModelProperty("上传的文件")
    private MultipartFile file;

    private List<PriceSurchargeImportDto.PriceSurchargeItem> priceSurchargeList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PriceSurchargeItem {
        @ApiModelProperty("Surcharge.item")
        @ExcelProperty(value = "Surcharge", index = 0)
        private String item;

        @ApiModelProperty("Surcharge.serviceCode")
        @ExcelProperty(value = "Surcharge", index = 1)
        private String serviceCode;

        @ApiModelProperty("zone")
        @ExcelProperty(value = "zone", index = 2)
        private String zones;

        @ApiModelProperty("rate")
        @ExcelProperty(value = "rate", index = 3)
        private BigDecimal rate;
    }
}
